package com.trade.core.exception;


/**
 * 基础异常类
 * @author likb
 */
public class TradeBaseException extends RuntimeException {

    /**
     * 默认状态码500，服务器异常
     */
    private int status = 500;

    public TradeBaseException() {
    }
    
    public TradeBaseException(String message) {
        super(message);
    }

    public TradeBaseException(String message, int status) {
        super(message);
        this.status = status;
    }

    public TradeBaseException(String message, Throwable cause) {
        super(message, cause);
    }

    public TradeBaseException(Throwable cause) {
        super(cause);
    }

    public TradeBaseException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }


    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

}
